package com.message.client.form;

import javax.swing.*;

public class ChatMainForm extends JFrame {

    /**
     * 服务器ip
     */
    private String serverHost;

    /**
     * 服务器端口
     */
    private Integer port;

    public ChatMainForm() {
        initFormInfo();
    }

    public ChatMainForm(String serverHost, Integer port) {
        this.serverHost = serverHost;
        this.port = port;

        initFormInfo();
    }

    /**
     * 初始化form信息
     */
    private void initFormInfo() {
        this.setSize(500, 500);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setLocationRelativeTo(null);
    }

}
